package com.zretc.answer.dao;

import com.zretc.api.pojo.Answer;
import com.zretc.api.pojo.Question;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

public interface AnswerMapper {
    Integer addSingleRecord(Answer answer);
    Integer deleteSingleRecord(Integer id);
    Integer getFromIdOfAnswerById(Integer id);
    Integer getIRPublisherIdOfAnswerById(Integer id);
    Integer deleteRecordsByQuestionId(Integer questionId);
    ArrayList<Answer> getAnswersByAmountByQuestionId(@Param("index") Integer index,
                                                       @Param("pageNum") Integer pageNum,
                                                       @Param("questionId") Integer questionId);
}
